using System;
using System.Windows.Forms;
using CustomSecurity;
using ListForms;
using BasicForms;

namespace Portal
{
    public partial class FrmEditThongSoAnChoDeveloper : BasicForms.FrmClose
    {
        public FrmEditThongSoAnChoDeveloper()
        {
            InitializeComponent();
        }

        private void linkLblCauHinhGiaoDienDanhSachChungTu_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmCauHinhFormDanhSachChungTu frmCauHinhFormDanhSachChungTu = new FrmCauHinhFormDanhSachChungTu();
            frmCauHinhFormDanhSachChungTu.Show();
        }

        private void linkLblCauHinhGiaoDienChungTu_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmCauHinhFormChungTu frmCauHinhFormChungTu = new FrmCauHinhFormChungTu();
            frmCauHinhFormChungTu.Show();
        }

        private void linkLblStoreID_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmSetStoreID frmSetStoreID = new FrmSetStoreID();
            frmSetStoreID.Show();
        }

        private void linkLblNhoGiaTuDongLuu_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmCauHinhTuDongLuuChungTu frmTuDongLuuChungTu = new FrmCauHinhTuDongLuuChungTu();
            frmTuDongLuuChungTu.Show();
        }

        private void linkLblCauHinhHanSuDung_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmHanSuDung frm = new FrmHanSuDung();
            frm.ShowDialog();
        }

        private void linkLblCauHinhKhac_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmGeneralSettings frm = new FrmGeneralSettings();
            frm.Show();

        }

        private void linkLblTenDoanhNghiep_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmThongTinCoSoThuoc frm = new FrmThongTinCoSoThuoc();
            frm.Show();
        }

        private void linkLblNamTaiChinh_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmNamTaiChinh frm = new FrmNamTaiChinh();
            frm.Show();
        }

        private void linkLblCauHinhFunction_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmDanhMucFunction frm = new FrmDanhMucFunction();
            frm.Show();
        }

        private void lblEditNumberOfkhoLimit_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmEditKhoLimit frm = new FrmEditKhoLimit();
            frm.ShowDialog();
        }

        private void FrmEditThongSoAnChoDeveloper_Load(object sender, EventArgs e)
        {
            if (User.CurUser.UserName.ToUpper().Equals("SUPADMIN"))
                lblEditNumberOfkhoLimit.Visible = true;
            else
                lblEditNumberOfkhoLimit.Visible = false;
        }
    }
}